package com.example.problem1.controller;

import org.springframework.stereotype.Controller;

@Controller
public class DemoController {

    public DemoController() {
        System.out.println("服务启动时根据注解自动注入DemoController");
    }
}

